import Link from "next/link";
import { notFound } from "next/navigation";
import { getRefs } from "@/lib/api";
import { dec } from "@/lib/params";
import { timeAgo } from "@/lib/format";
type Props = { params: Promise<{ repo: string }> };
function RefList({
repo,
kind,
refs,
}: {
repo: string;
kind: "branch" | "tag";
refs: { name: string; short: string; when: string; subject: string }[];
}) {
return (
none
{kind === "branch" ? "branches" : "tags"}
{refs.length === 0 ? (